
package speedometerObs;

public class Client {


	public static void main(String[] args) {
		// Create a monitor...
		SpeedMonitor monitor = new SpeedMonitor();

		// Create a speedometer and register the monitor to it...
		Speedometer speedo = new Speedometer();
		speedo.addObserver(monitor);

		// Drive at different speeds...
		speedo.setCurrentSpeed(50);
		speedo.setCurrentSpeed(70);
		speedo.setCurrentSpeed(40);
		speedo.setCurrentSpeed(100);
		speedo.setCurrentSpeed(69);


	}

}
